import { Injectable } from '@angular/core';

const docs: object = {};

@Injectable()
export class DocsService {
  constructor() { }
  public get<T>(key: string): any{
    return docs[key] as T;
  }

  public set(key: string, value: any): void {
    if(!value && value === undefined) { return; }
    docs[key] = value;
  }
}
